package com.pan.server.service;

import com.github.pagehelper.PageInfo;
import com.pan.pojo.vo.OrderVO;
import org.springframework.stereotype.Service;

@Service
public interface OrdersService {
    /**
     *
     * @param username
     * @param pageNum
     * @param pageSize
     * @return
     */
    PageInfo<OrderVO> queryOrders(String username, Integer pageNum, Integer pageSize);

    /**
     *
     * @param username
     * @param bookId
     * @param quantity
     */
    void addOrder(String username, Integer bookId, Integer quantity);

    /**
     *
     * @param orderId
     * @param status
     */
    void updateOrder(Integer orderId, String status);

    /**
     *
     * @param orderId
     */
    void deleteOrder(Integer orderId);
}